package com.qys.livesMall.shop.service.impl;

import com.qys.livesMall.shop.service.H2ShopLevelService;
import com.qys.livesMall.shop.service.ShopAsyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @menu ShopAsyncServiceImpl
 * @date 2023/05/30 11:18
 */
@Service
public class ShopAsyncServiceImpl implements ShopAsyncService {

    @Autowired
    private H2ShopLevelService shopLevelService;

    @Async
    @Override
    public void shopUpgrade(Long userId) {
        shopLevelService.upgradeTask(userId);
    }
}

